<?php
namespace App\Repositories\GameServer;

use App\Models\GameServer\ExchangeRecord;

class ExchangeRecordRepository
{
    //获取某玩家兑换记录
    public function getExchangeRecords($id)
    {
        $res = ExchangeRecord::where('account_id', $id)->with(['userInfo', 'gift'])->orderBy('id','desc')->get();

        // dd($res);
        return $res;
    }
}
